<%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2019/4/16
  Time: 19:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="Message.StuMessageDTO" %>
<html>
<head>
    <title>DGUT</title>
    <style>
        .class1
        {
            width:20%;
            font-size: 15px;
            color:white;
            background-color: #70e0ea;
            padding:7px;
        }
        .class2 {
            font-size: 30px;
            font-weight: bold;
            color: #4bf04b;
        }
        .class3
        {
            font-size:15px;
            width:50px;
        }
        .class4
        {
            color: #f63a3a;
            background-color: #14f8f6;
            font-weight: bold;
            font-size: 20px;
            padding: 6px;
            width:80px;
            height:40px;
        }
    </style>
</head>
<body>
<%
    StuMessageDTO SMD=null;
    String sub;
    String username;
    String name;
    String group;
    String faculty_title;
    if(session.getAttribute("islogin")!=null)
    {
        SMD = (StuMessageDTO) session.getAttribute("islogin");
        username = SMD.getUsername();
        name = SMD.getName();
        group = SMD.getGroup();
        faculty_title = SMD.getFaculty_title();
        sub = "退出";
    }
    else
    {
        username = "";
        name = "";
        group = "";
        faculty_title = "";
        sub = "登录";
    }


%>
    <form action="/login/dgut" method="post">
        <table border="1px" style="border-collapse:collapse;" align="center">
            <caption class="class2">登录信息</caption>>
            <tr>
                <td align="right" class="class1">用户名</td>
                <td class="class3"><%=username%></td>
            </tr>
            <tr>
                <td align="right" class="class1">姓名</td>
                <td class="class3"><%=name%></td>
            </tr>
            <tr>
                <td align="right" class="class1">分组</td>
                <td class="class3"><%=group%></td>
            </tr>
            <tr>
                <td align="right" class="class1">学院</td>
                <td class="class3"><%=faculty_title%></td>
            </tr>
            <tr>
                <td align="center" colspan="2"><input type="submit" name="submit" value="<%=sub%>" class="class4"></td>
            </tr>
        </table>
    </form>
</body>
</html>
